//
//  SyncDeviceApi.m
//  AFNetworking
//
//  Created by tracyhenry on 2022/8/10.
//

#import "SyncDeviceApi.h"
@interface SyncDeviceApi()
@end
@implementation SyncDeviceApi

-(id)initWithDevId:(NSString *)devId withMac:(NSString *)mac{
    if(self = [super init]){
        self.devId = devId;
        self.mac = mac;
    }
    return self;
}

-(id)requestCmdId{
    return @SyncDevice;
}

-(BOOL)responseArgumentCommandId:(int)cmdId{
    return cmdId==SyncDevice;
}


-(id)requestArgumentCommand{
    [super msgChange];
    
    return @{
             @"namespace":@"config",
             @"source":@"app",
             @"target":@"gateway",
             @"hw_id":self.mac,
             @"msg_id":@(self.msgId),
             @"msg":@{
                 @"CMD_CODE":[self requestCmdId],
                 @"str1":@"",
                 @"str2":@"",
                 @"str3":@"",
               }
            };
}

-(BOOL)isSetApi{
    return NO;
}

-(BOOL)isMqttOnly{
    return NO;
}
@end

